package com.zhongyu.controller;

import com.zhongyu.service.xsbIReportService;
import com.zhongyu.vo.OrderVo;
import com.zhongyu.vo.ResultVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
@RestController
@RequestMapping("/xsb/")
public class XsbIReportController {
    @Resource
    private xsbIReportService xsbIReportService;
    @GetMapping("/list")
    public  ResultVo  orderReport(OrderVo orderVo){
     List list= xsbIReportService.ordersReport(orderVo);
        System.out.println(list);
//        List<Store> list= storeService.searchAll();
        return ResultVo.success(list);
    }
}
